﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<PagetedList<Blog.Models.Article>>" %>
<%@ Import Namespace="Blog.Helper"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <%
        foreach (var c in Model)
        {
            ViewData["body"] = c.Introduce;
          %>
       <div class="chitiet">
       <h2>
       <%=Html.ActionLink(c.TiTle, "Details", new { Controller = "Menu", id = c.ArticleId })%>
       </h2>
       <p>
       <%=ViewData["body"]%>
       </p>
       </div>
    <%
        }%>
<% if (Model.HasPreviousPage) { %> 
 
    <%= Html.RouteLink("<<<",  
                       "UpcomingDinners",  
                       new { page=(Model.PageIndex-1) }) %> 
 
<% } %> 
 
<% if (Model.HasNextPage) { %> 
 
    <%= Html.RouteLink(">>>",  
                       "UpcomingDinners",  
                       new {page = (Model.PageIndex + 1) })%> 
 
<% } %> 

</asp:Content>
